<?php
declare (strict_types = 1);

namespace app\api\controller;

class Index
{
    /**
     * API首页
     *
     * @return \think\response\Json
     */
    public function index()
    {
        return json([
            'code' => 0,
            'msg' => 'success',
            'data' => [
                'message' => 'Welcome to ThinkPHP API',
                'version' => '1.0.0',
                'app' => 'api',
                'time' => date('Y-m-d H:i:s')
            ]
        ]);
    }

}
